<?php if (empty($data) || count($data) == 0) { ?>
<div style="text-align:center; padding-top:20px;"><?php __('no result found'); ?></div>
<?php } else { ?>
<table width="100%" cellpadding="2" cellspacing="0" border="0" class="reportTbl reportTbl2">
  <thead>
    <tr>
      <td><?php __('User ID'); ?></td>
      <td><?php __('Agent Name'); ?></td>
      <td><?php __('Telephone'); ?></td>
      <td><?php __('Medal'); ?></td>
      <td width="120"><?php __('Entitle to retain dowline BV'); ?></td>
      <td width="120"><?php __('Entitle to receive matching bonus'); ?></td>
      <td><?php __('Total Volume(BV)'); ?></td>
      <td><?php __('BV to buy'); ?></td>
      <td><?php __('Level'); ?></td>
    </tr>
  </thead>
  <tbody>
<?php     foreach ($data as $i=>$row) {
              $style = ($i%2==0)?'':' style="background-color: #E3E3E3;"'; ?>
    <tr>
      <td align="right"<?php e($style); ?>><?php e($row['mem_id']); ?></td>
      <td><?php e($row['name']); ?></td>
      <td><?php e($row['phone']); ?></td>
      <td><?php e($row['medal']); ?></td>
      <td align="center"><?php e($row['rdb']); ?></td>
      <td align="center">&nbsp;</td>
      <td align="center"><?php e($row['pbv']); ?></td>
      <td align="center"><?php e($row['rbv']); ?></td>
      <td align="center"><?php e($row['level']); ?></td>
    </tr>
<?php     } ?>
  </tbody>
</table>
<?php } ?>